﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="callback.aspx.cs" Inherits="AnyOffice.general.system.res_manage.callback" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>系统资源管理</title>
		
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css">
		<script src="/module/date_selector/popcalendar.js"></script>
		<script src="/aspnet_client/core/function.js"></script>
		<script>
function delete_specifytime()
{
   if(document.Form1.txtBeginTime.value=="" && document.Form1.txtEndTime.value=="")
   {
     alert("起始时间和截止时间不能同时为空！");
     return (false);
   }
   
    if(!(checkIsDate(document.Form1.txtBeginTime.value) || checkIsDateTime(document.Form1.txtBeginTime.value)))
   {
	 alert("起始时间不正确！");
	 document.Form1.txtBeginTime.focus();
	 return (false);
   }
   
    if(!(checkIsDate(document.Form1.txtEndTime.value) || checkIsDateTime(document.Form1.txtEndTime.value)))
   {
	 alert("截止时间不正确！");
	 document.Form1.txtEndTime.focus();
	 return (false);
   }

   if(document.Form1.ckbTimeSms.checked==false && document.Form1.ckbTimeEmail.checked==false)
   {
	 alert("请选择删除项目！");
     return (false);
   }
   msg='确认要删除所有符合指定条件的资源么？';
   if(window.confirm(msg))  
      return true;
   else
	  return false;
}

function delete_specifyuser()
{
   if(document.Form1.ToId.value=="")
   { alert("请选择用户！");
     return false;
   }

   msg='确认要删除指定用户的资源么？';
   if(window.confirm(msg))  
      return true;
   else
	  return false;
}

function delete_sms()
{
  msg='确认要删除所有已读内部短信么？';
  if(window.confirm(msg))
	 return true;
  else
	return false;
}

function delete_garbage()
{
  msg='请先进行数据备份（包括数据库和附件）\n\n确认要清除系统垃圾么，清除后将不可恢复？';
  if(window.confirm(msg)) 
	return true;
  else
	return false;  
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/sys_config.gif" WIDTH="20" HEIGHT="20" align="absMiddle"><span class="big3">
							删除所有已读内部短信</span><br>
					</td>
				</tr>
			</table>
			<br>
			<div align="center">&nbsp;
				<asp:Button id="btnReadSms" runat="server" Text="删除所有已读内部短信" ToolTip="删除所有已读内部短信，有利于改进系统速度"
					CssClass="BigButton" onclick="btnReadSms_Click"></asp:Button>
			</div>
			<br>
			<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
				<tr>
					<td background="/images/dian1.gif" width="100%"></td>
				</tr>
			</table>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absMiddle"><span class="big3">
							删除指定时间的资源</span><br>
					</td>
				</tr>
			</table>
			<br>
			<table border="0" width="500" cellpadding="2" cellspacing="1" align="center" class="small"
				bgcolor="#000000">
				<TBODY>
					<tr>
						<td nowrap class="TableContent">起始时间：</td>
						<td class="TableData"><input type="text" name="txtBeginTime" size="20" maxlength="20" class="BigInput" id="txtBeginTime"
								runat="server"> <img src="/images/menu/calendar.gif" border="0" style="CURSOR:hand" onclick="popUpCalendar(this,txtBeginTime,'yyyy-mm-dd','');">
							<img src="/images/menu/clock.gif" border="0" style="CURSOR:hand" onclick="popClock('txtBeginTime');">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableContent">截止时间：</td>
						<td class="TableData"><input type="text" name="txtEndTime" size="20" maxlength="20" class="BigInput" id="txtEndTime"
								runat="server"> <img src="/images/menu/calendar.gif" border="0" style="CURSOR:hand" onclick="popUpCalendar(this,txtEndTime,'yyyy-mm-dd','');">
							<img src="/images/menu/clock.gif" border="0" style="CURSOR:hand" onclick="popClock('txtEndTime');">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableContent">删除项目：</td>
						<td class="TableData">
							<asp:CheckBox id="ckbTimeSms" runat="server" Text="内部短信"></asp:CheckBox>
							<asp:CheckBox id="ckbTimeEmail" runat="server" Text="内部邮件"></asp:CheckBox>
						</td>
					</tr>
					<tr>
						<td nowrap class="TableControl" colspan="2" align="center">&nbsp;
							<asp:Button id="btnSpecifyTime" runat="server" Text="确定" ToolTip="确定" CssClass="BigButton" onclick="btnSpecifyTime_Click"></asp:Button>
						</td>
					</tr>
				</TBODY>
			</table>
			<br>
			<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
				<tr>
					<td background="/images/dian1.gif" width="100%"></td>
				</tr>
			</table>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absMiddle"><span class="big3">
							删除指定用户的资源</span><br>
					</td>
				</tr>
			</table>
			<br>
			<table border="0" width="500" cellpadding="2" cellspacing="1" align="center" class="small"
				bgcolor="#000000">
				<TBODY>
					<tr>
						<td nowrap class="TableContent">用户：</td>
						<td class="TableData">
							<input type="hidden" name="ToId" id="ToId" runat="server"> <textarea cols="35" name="ToName" rows="3" class="BigStatic" wrap="yes" readonly id="ToName"
								runat="server"></textarea> &nbsp;<input type="button" value="添 加" class="SmallButton" onClick="user_select('ToId','ToName')"
								title="添加发送人" name="button"> &nbsp;<input type="button" value="清 空" class="SmallButton" onClick="clear_double('ToId','ToName')"
								title="清空发送人" name="button">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableContent">删除项目：</td>
						<td class="TableData">
							<asp:CheckBox id="ckbEmail" runat="server" Text="内部邮件"></asp:CheckBox>
							<asp:CheckBox id="ckbFileFolder" runat="server" Text="我的文件柜"></asp:CheckBox>
							<asp:CheckBox id="ckbAddress" runat="server" Text="个人通讯录"></asp:CheckBox>
							<asp:CheckBox id="ckbCalendar" runat="server" Text="日程安排"></asp:CheckBox>
							<br>
							<asp:CheckBox id="ckbDiary" runat="server" Text="工作日志"></asp:CheckBox>
							<asp:CheckBox id="ckbUrl" runat="server" Text="个人网址"></asp:CheckBox>
						</td>
					</tr>
					<tr>
						<td nowrap class="TableControl" colspan="2" align="center">&nbsp;
							<asp:Button id="btnSpecifyUser" runat="server" Text="确定" ToolTip="确定" CssClass="BigButton" onclick="btnSpecifyUser_Click"></asp:Button>
						</td>
					</tr>
				</TBODY>
			</table>
			<br>
			<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
				<tr>
					<td background="/images/dian1.gif" width="100%"></td>
				</tr>
			</table>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absMiddle"><span class="big3">
							清除系统垃圾 </span><span class="small1">用于回收已删除用户所占用的空间，包括附件、临时文件等</span><br>
					</td>
				</tr>
			</table>
			<br>
			<div align="center">
				<asp:Button id="btnGarbage" runat="server" Text="清除系统垃圾" ToolTip="清除系统垃圾，有利于改进系统速度" CssClass="BigButton" onclick="btnGarbage_Click"></asp:Button>
			</div>
			<br>
			<br>
		</form>
	</body>
</HTML>
